<?php
require "web.config.php";
  
class homeController
 {
   

     //
   function index($param){   
   $output = show(self::$db_il,$param);
   	$title=$output['title'];
   	$url=$output['url'];
   	$type=$output['type'];
   	if(!$type)
   	 toUrl($url);
 include view(__ROOT__,str_replace('Controller','',__CLASS__),__FUNCTION__,'iconShare');//加载视图  
   }
   
    //--------------------------------链接 
    static $db_il='iFrame_link'; 
public function iFrame_link($param){   
global $m;
   $output = show(self::$db_il,-1);
   
    include view(__ROOT__,str_replace('Controller','',__CLASS__),__FUNCTION__,'backShare');//加载视图
    }     
    
    
function iFrame_linkadd($param){    
global $m;
   $output= show(self::$db_il,$param);  include view(__ROOT__,str_replace('Controller','',__CLASS__),__FUNCTION__,'backShare');
     }
     
     
function iFrame_linkupdate(){
	
	global $m;
$dt = $_POST['data'];
$id = $_POST['id'];

$myValue =update(self::$db_il,$dt,$id,("iframe/home/".self::$db_il));
}

//删除
           function iFrame_linkdel($id){    
global $m;
$myValue =del(self::$db_hl,$id,SplitUrl("iframe/home/".self::$db_il));
}  


   
   
 }
 
 